package bean;

import lombok.Data;

import java.util.Objects;

/**
 * @author wb_zhulinzhong
 * @date 2021-04-15 16:38:30
 */
@Data
public class UserInfo {

    private String uId;

    private String password;

    private boolean login;

    public UserInfo() { }

    public UserInfo(String uId, String password) {
        this.uId = uId;
        this.password = password;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserInfo userInfo = (UserInfo) o;
        return uId.equals(userInfo.uId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uId);
    }
}
